<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PersonaViewDlg" widgetVar="PersonaViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewPersonaTitle}">

            <h:form id="PersonaViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{personaController.selected != null}">

                        <h:outputText value="#{bundle.ViewPersonaLabel_id}"/>
                        <h:outputText value="#{personaController.selected.id}" title="#{bundle.ViewPersonaTitle_id}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_nombre1}"/>
                        <h:outputText value="#{personaController.selected.nombre1}" title="#{bundle.ViewPersonaTitle_nombre1}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_nombre2}"/>
                        <h:outputText value="#{personaController.selected.nombre2}" title="#{bundle.ViewPersonaTitle_nombre2}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_apellido1}"/>
                        <h:outputText value="#{personaController.selected.apellido1}" title="#{bundle.ViewPersonaTitle_apellido1}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_apellido2}"/>
                        <h:outputText value="#{personaController.selected.apellido2}" title="#{bundle.ViewPersonaTitle_apellido2}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_fechaNacimiento}"/>
                        <h:outputText value="#{personaController.selected.fechaNacimiento}" title="#{bundle.ViewPersonaTitle_fechaNacimiento}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewPersonaLabel_direccion1}"/>
                        <h:outputText value="#{personaController.selected.direccion1}" title="#{bundle.ViewPersonaTitle_direccion1}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_direccion2}"/>
                        <h:outputText value="#{personaController.selected.direccion2}" title="#{bundle.ViewPersonaTitle_direccion2}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_telefono}"/>
                        <h:outputText value="#{personaController.selected.telefono}" title="#{bundle.ViewPersonaTitle_telefono}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_celular}"/>
                        <h:outputText value="#{personaController.selected.celular}" title="#{bundle.ViewPersonaTitle_celular}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_creationDate}"/>
                        <h:outputText value="#{personaController.selected.creationDate}" title="#{bundle.ViewPersonaTitle_creationDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewPersonaLabel_createdBy}"/>
                        <h:outputText value="#{personaController.selected.createdBy}" title="#{bundle.ViewPersonaTitle_createdBy}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_lastUpdateDate}"/>
                        <h:outputText value="#{personaController.selected.lastUpdateDate}" title="#{bundle.ViewPersonaTitle_lastUpdateDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewPersonaLabel_lastUpdateBy}"/>
                        <h:outputText value="#{personaController.selected.lastUpdateBy}" title="#{bundle.ViewPersonaTitle_lastUpdateBy}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_motoristaList}"/>

                        <h:outputText value="#{bundle.ViewPersonaLabel_socioList}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="PersonaViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
